From: Glenn Morris Date: Thu, 1 Dec 2011 22:30:12 +0000 (-0500) Subject: Tweak previous em-hist.el change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1473 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fc308184cbf60cf61d7a0baef1d77caf22a7b523;p=emacs.git Tweak previous em-hist.el change. --- diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 975f1b17143..5ae419f7ba9 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -263,8 +263,9 @@ element, regardless of any text on the command line. In that case, (or eshell-history-size (let ((hsize (getenv "HISTSIZE"))) (setq eshell-history-size - (if (and (> (length hsize) 0) - (integerp (setq hsize (string-to-number hsize)))) + (if (and (stringp hsize) + (integerp (setq hsize (string-to-number hsize))) + (> hsize 0)) hsize 128))))